const schemas = {
  "getTestObjects": {
    "responses": {
      "200": {
        "type": "object",
        "properties": {
          "optResult": {
            "description": "值为0，操作成功",
            "type": "number"
          },
          "msg": {
            "type": "string",
            "description": "操作失败说明"
          },
          "testObjects": {
            "type": "array",
            "description": "测试对象列表",
            "items": {
              "type": "object",
              "properties": {
                "objectType": {
                  "type": "string",
                  "description": "测试对象类型，取值：\nRestAPI\nRPCAPI\nWebUI"
                },
                "apiDocNum": {
                  "type": "number",
                  "description": "Rest API文档数量。当objectType为RestAPI时必选。"
                },
                "rpcNum": {
                  "type": "number",
                  "description": "RPC接口数量。当objectType为RPCAPI时必选。"
                },
                "webPageNum": {
                  "type": "string",
                  "description": "Web UI测试页面数量。当objectType为WebUI时必选。"
                }
              },
              "required": [
                "objectType",
                "webPageNum"
              ]
            }
          }
        },
        "required": [
          "optResult",
          "testObjects"
        ],
        "$schema": "http://json-schema.org/draft-04/schema#"
      }
    }
  }
}

export default schemas;
